package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Xiao
 * @version 1.0
 * @description
 * @date 2021/11/22
 */
public interface WmChannelService extends IService<WmChannel> {
    /**
     * 自媒体文章管理-频道列表
     * @return
     */
    ResponseResult getChannels();

    /**
     * 查询频道列表
     * @param dto
     * @return
     */
    Page getChannelList(SensitiveDto dto);

    /**
     * 删除频道
     * @param id
     * @return
     */
    ResponseResult delChannel(Integer id);

    /**
     * 添加频道
     * @param adSensitive
     * @return
     */
    ResponseResult saveChannel(WmSensitive adSensitive);

    /**
     * 修改频道
     * @param adSensitive
     * @return
     */
    ResponseResult updateChannel(WmSensitive adSensitive);
}
